package com.suray.basic.wcs.plc.pojo.lifter.data.map;

public class LifterMap {
    /**
     * layer:AB, A（1-2）: 1 两向车层；2 四向车层； B（1-99）：层
     */
    public int layer;
    public int distance;

    public LifterMap(int layer, int distance) {
        this.layer = layer;
        this.distance = distance;
    }

    public static int combineLayer(int layer, boolean isFourLayer) {
        if (isFourLayer) {
            layer = 2 * 100 + layer;
        } else {
            layer = 1 * 100 + layer;
        }

        return layer;
    }
}
